#region Copyright (c) 2006 Jonathan Nauman
/*       _\|/_
         (o o)
+-----oOO-{_}-OOo-----------------------+
| Copyright (c) Jonathan Naumann        |
+---------------------------------------+
| 
| File: Main.cs
| Version:	0.1.7
+
*/
#endregion

using System;
using Gtk;

namespace MonoPad {
	public class MainClass {
		///
		/// Absolute main
		///
		public static void Main(string[] args) {
			string strOptions = "";
			
			Application.Init();
			///
			
			if(args.Length == 0) {
				strOptions = "";
			}
			else {
				strOptions = args[0];
			}
			
			MonoPadVersion mpv = new MonoPadVersion();
			
			switch(strOptions) {
				case "-h":
				case "-help":
				case "--h":
				case "--help":
					Console.WriteLine(mpv.Name);
					Console.WriteLine(mpv.Copyright);
					Console.WriteLine("Usage: mono MonoPad.exe");
					Console.WriteLine("Usage: mono MonoPad.exe [Filename]");
					Console.WriteLine("Usage: mono MonoPad.exe -h | --h | -help | --help");
					Console.WriteLine("Usage: mono MonoPad.exe -v");
					Console.WriteLine("Usage: mono MonoPad.exe -[Option]");
					Console.WriteLine("");
					Console.WriteLine("Options:");
					Console.WriteLine("\t-h                   = This help");
					Console.WriteLine("\t--h                  = This help");
					Console.WriteLine("\t-help                = This help");
					Console.WriteLine("\t--help               = This help");
					Console.WriteLine("\t-v                   = The current version");
					break;
				
				case "-v":
					Console.WriteLine(mpv.Name + " " + mpv.Version);
					break;
				
				default:
					Console.WriteLine(mpv.Name);
					Console.WriteLine(mpv.Copyright);
					new GladeGUI(args);
					Application.Run();
					break;
			}
		}
	}
}
